import {
	ajaxGet,
	ajaxPost,
	ajaxDelete,
	ajaxPut,
	ajaxPatch,
	chooseUploadImg,
	uploadImg
} from "./request";


module.exports = {

	//登录
	login: params => ajaxPost({
		url: `api/users/login`,
		params
	}),
	//退出登录
	logout: params => ajaxPost({
		url: `api/index/logout`,
		params
	}),
	//忘记密码
	resetPassword: params => ajaxPost({
		url: `api/index/resetPassword`,
		params
	}),
	//发送验证码
	sendCode: params => ajaxPost({
		url: `api/index/sendCode`,
		params
	}),
	//上传文件
	upload: params => ajaxPost({
		url: `api/index/upload`,
		params
	}),
	//上传文件
	uploadstream: params => ajaxPost({
		url: `api/index/uploadstream`,
		params
	}),
	//获取视频列表
	get_video_list: params => ajaxPost({
		url: `api/video/get_video_list`,
		params
	}),
	//ai绘画
	draw: params => ajaxPost({
		url: `api/images/draw`,
		params
	}),
	//获取用户信息
	userInfo: params => ajaxPost({
		url: `api/users/get_user`,
		params
	}),





	get_sound_list: (params) => ajaxPost({
		url: "api/sound/get_sound_list",
		params
	}),
	get_timbre_list: (params) => ajaxPost({
		url: "api/sound/get_timbre_list",
		params
	}),
	craftAudio: (params) => ajaxPost({
		url: "api/sound/submit_sound",
		params
	}),
	del_sound: (params) => ajaxPost({
		url: "api/sound/del_sound",
		params
	}),
	upload_mp3: (params) => ajaxPost({
		url: "api/uploads/upload_mp3",
		params
	}),
	submits_sound: (params) => ajaxPost({
		url: "api/sound/submits_sound",
		params
	}),
	get_cat: (params) => ajaxPost({
		url: "api/sound/get_cat",
		params
	}),


	/* 
	直播视频
	*/
	submit_video: (params) => ajaxPost({
		url: "api/video/submit_video",
		params
	}),
	get_video_list: (params) => ajaxPost({
		url: "api/video/get_video_list",
		params
	}),
	del_video: (params) => ajaxPost({
		url: "api/video/del_video",
		params
	}),

	/* 
	互动话术
	*/
	get_one: (params) => ajaxPost({
		url: "api/Interaction/get_one",
		params
	}),
	get_list: (params) => ajaxPost({
		url: "api/Interaction/get_list",
		params
	}),
	add: (params) => ajaxPost({
		url: "api/Interaction/add",
		params
	}),
	edit: (params) => ajaxPost({
		url: "api/Interaction/edit",
		params
	}),
	del: (params) => ajaxPost({
		url: "api/Interaction/del",
		params
	}),

	/* 
	商品讲解
	*/
	goods_add: (params) => ajaxPost({
		url: "api/goods/add",
		params
	}),
	goods_get_list: (params) => ajaxPost({
		url: "api/goods/get_list",
		params
	}),
	goods_edit_name: (params) => ajaxPost({
		url: "api/goods/edit_name",
		params
	}),
	goods_del: (params) => ajaxPost({
		url: "api/goods/del",
		params
	}),
	goods_query_data: (params) => ajaxPost({
		url: "api/goods/query_data",
		params
	}),
	goods_add_data: (params) => ajaxPost({
		url: "api/goods/add_data",
		params
	}),
	goods_add_query: (params) => ajaxPost({
		url: "api/goods/add_query",
		params
	}),
	goods_del_data: (params) => ajaxPost({
		url: "api/goods/del_data",
		params
	}),

	/* 
	直播方案
	*/
	getlive: (params) => ajaxPost({
		url: "api/live/get_live_list",
		params
	}),
	createlive: (params) => ajaxPost({
		url: "api/live/create_live",
		params
	}),
	editlive: (params) => ajaxPost({
		url: "api/live/edit_live",
		params
	}),
	dellive: (params) => ajaxPost({
		url: "api/live/del_live",
		params
	}),
	getliveoption: (params) => ajaxPost({
		url: "api/live/get_live",
		params
	}),
	add_live_goods: (params) => ajaxPost({
		url: "api/live/add_live_goods",
		params
	}),
	get_live_goods: (params) => ajaxPost({
		url: "api/live/get_live_goods",
		params
	}),
	get_live_goods_list: (params) => ajaxPost({
		url: "api/live/get_live_goods_list",
		params
	}),
	del_live_video: (params) => ajaxPost({
		url: "api/live/del_live_video",
		params
	}),

	/* 
	直播配置
	*/
	get_all: (params) => ajaxPost({
		url: "api/liveconfig/get_all",
		params
	}),
	edit_all: (params) => ajaxPost({
		url: "api/liveconfig/edit_all",
		params
	}),
	get_welcome: (params) => ajaxPost({
		url: "api/liveconfig/get_welcome",
		params
	}),
	edit_welcome: (params) => ajaxPost({
		url: "api/liveconfig/edit_welcome",
		params
	}),
	get_likes: (params) => ajaxPost({
		url: "api/liveconfig/get_likes",
		params
	}),
	edit_likes: (params) => ajaxPost({
		url: "api/liveconfig/edit_likes",
		params
	}),
	get_gift: (params) => ajaxPost({
		url: "api/liveconfig/get_gift",
		params
	}),
	edit_gift: (params) => ajaxPost({
		url: "api/liveconfig/edit_gift",
		params
	}),
	get_lead: (params) => ajaxPost({
		url: "api/liveconfig/get_lead",
		params
	}),
	edit_lead: (params) => ajaxPost({
		url: "api/liveconfig/edit_lead",
		params
	}),


	configuration: (params) => ajaxPost({
		url: "api/golive/configuration",
		params
	}),
	check_captions: (params) => ajaxPost({
		url: "api/golive/check_captions",
		params
	}),
	get_lead: (params) => ajaxPost({
		url: "api/golive/get_lead",
		params
	}),


	login: params => ajaxPost({
		url: "api/users/login",
		params
	}),
	getUser: (params) => ajaxPost({
		url: "api/users/get_user",
		params
	}),
	download: (params) => request.get("api/users/get_user", params),
	draw: (params) => ajaxPost({
		url: "api/images/draw",
		params
	}),
	preserve_draw: (params) => ajaxPost({
		url: "api/images/preserve_draw",
		params
	}),
	user_up: (params) => ajaxPost({
		url: "api/images/user_up",
		params
	}),
	// get_list: (params) => ajaxPost({
	// 	url:"api/index/get_list",
	// 	params
	// }),
	get_cat: (params) => ajaxPost({
		url: "api/index/get_cat",
		params
	}),
	set_user: (params) => ajaxPost({
		url: "api/users/set_user",
		params
	}),


	getFigure: (params) => ajaxPost({
		url: "api/video/get_backgrounds",
		params
	}),
	getVideo: (params) => ajaxPost({
		url: "api/video/get_video_list",
		params
	}),
	craftVideo: (params) => ajaxPost({
		url: "api/video/submit_video",
		params
	}),
	del_video: (params) => ajaxPost({
		url: "api/video/del_video",
		params
	}),
	get_image_list: (params) => ajaxPost({
		url: "api/video/get_image_list",
		params
	}),
	get_texture_cat: (params) => ajaxPost({
		url: "api/lackvideo/get_texture_cat",
		params
	}),
	get_texture_list: (params) => ajaxPost({
		url: "api/lackvideo/get_texture_list",
		params
	}),
	get_back_list: (params) => ajaxPost({
		url: "api/lackvideo/get_back_list",
		params
	}),
	get_image_list: (params) => ajaxPost({
		url: "api/lackvideo/get_image_list",
		params
	})
}